<?php

namespace app\api\controller;


class User extends ApiBase {
    public function getUserInfo() {
        $result = model('User')->getUserInfo($this->user_id);
        if ($result->status == 0) {
            return show(11, '用户没授权');
        }
        return show(0, '获取用户数据成功', $result);
    }
}